<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <style>
        body {
        	perspective: 500px;
        }
		img {
			margin: 200px 400px;
			transition: all 1s;
			transform-origin: left;
		}
		img:hover {
			transform: rotateZ(60deg),translate3d(20px, 20px, 20px);
			
		}
        </style>
    </head>
    <body>
    <img src="images/car.jpg"  width="500" alt="">
    </body>
</html>